/*
* @Author: wanghongfucoder
* @Date:   2017-04-12 10:28:15
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-04-12 10:34:06
*/

public  class Demo {
	
	public static void main(String[] args) {
		Service service=ServiceLocator.getService("Service1");
		service.execute();
		service=ServiceLocator.getService("Service2");
		service.execute();
		service=ServiceLocator.getService("Service1");
		service.execute();
		service=ServiceLocator.getService("Service2");
		service.execute();
	}
}